{extend name="layout/layout" /}

{block name="pagecss"}
<link href="__STATIC__/plugins/bootstrap-switch/css/bootstrap-switch.min.css" rel="stylesheet" type="text/css" />
{/block}

{block name="content"}
<div class="row">
    <div class="col-lg-12">
        <div class="portlet light">
            <div class="row">
                <div class="col-md-10">
                    <form id="searchForm" action="{$pageSize.url}" class="form" method="post">
                        <div class="form-inline">
                            <span class="town-div">
                                {if condition="($admin->type == 3) OR ($admin->type == 6)"}
                                {$selectarea['cityname']}->{$selectarea['xianname']}->{$selectarea['townname']}
                                {if !$selectarea['villagename']}
                                    <select id="village" name="villageId" class="form-control"></select>
                                {/if}
                                {elseif condition="($admin->type == 4)"}
                                {$selectarea['cityname']}->{$selectarea['xianname']}->{$selectarea['townname']}->{$selectarea['villagename']}
                                {elseif condition="($admin->type == 2)"}
                                {$selectarea['cityname']}->{$selectarea['xianname']}
                                <select id="town" name="townId" class="form-control" data-hasvillage="on" ></select>
                                <select id="village" name="villageId" class="form-control"></select>
                                {elseif condition="($admin->type == 1)"}
                                {$selectarea['cityname']}
                                <select id="xian" name="xianId" class="form-control"></select>
                                <select id="town" name="townId" class="form-control" data-hasvillage="on" ></select>
                                <select id="village" name="villageId" class="form-control"  ></select>
                                {else/}
                                <select id="city" name="cityId" class="form-control"></select>
                                <select id="xian" name="xianId" class="form-control"></select>
                                <select id="town" name="townId" class="form-control" data-hasvillage="on" ></select>
                                <select id="village" name="villageId" class="form-control"></select>
                                {/if}

                                <input type="hidden" class="form-control city" name="city" value="">
                                <input type="hidden" class="form-control xian" name="xian" value="">
                                <input type="hidden" class="form-control town" name="town" value="">
                                <input type="hidden" class="form-control village" name="village" value="">
                            </span>

                            <select id="authType" name="authType" class="form-control">
                                <option value="">全部认证</option>
                                <option value="1">个人认证</option>
                                <option value="2">企业认证</option>
                            </select>
                            <select id="checkStatus" name="checkStatus" class="form-control">
                                <option value="">全部状态</option>
                                <option value="2">待审核</option>
                                <option value="1">审核通过</option>
                                <option value="3">审核驳回</option>
                            </select>
                            <input type="text" class="form-control" name="mobile" value="" placeholder="手机号">
                            &nbsp;&nbsp;&nbsp;
                            <button id="doSearch" type="button" class="btn btn-success" title="筛选">
                                <i class="fa fa-search"></i> 筛选
                            </button>
                            <!--<a href="{$currentUrl}?reset=1" class="btn btn-danger"><i class="fa fa-trash"></i> 清空</a>-->
                            <button type="reset" class="btn btn-danger" title="清空">
                                <i class="fa fa-trash"></i> 清空
                            </button>
                        </div>
                    </form>
                </div>

                <div class="col-md-2">

                </div>
            </div>
        </div>
    </div>
</div>
<div class="row js-check-wrap">
    <div class="col-lg-12">
        <div class="portlet light">
            <div class="portlet-body">
                <form class="js-ajax-form" method="post">
                    <div class="">
                        <table id="data-table" class="table table-bordered table-hover dataTable">
                            <thead>
                            <tr>
                                <th>认证手机号</th>
                                <th>认证类型</th>
                                <th>申请时间</th>
                                <th>状态</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<!-- 操作弹框 -->
<div class="modal fade" id="check-modal" data-backdrop="static" data-keyboard="false" >
    <div class="modal-dialog" style="width:520px; height: 500px;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">x</button>
                <h4 class="modal-title">认证</h4>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-md-12">
                        <!-- BEGIN SAMPLE FORM PORTLET-->
                        <div class="portlet light">
                            <div class="portlet-body">
                                <form id="ajax-form" class="form-horizontal" name="ajaxForm">
                                    <div class="form-body">
                                        <div class="row">
                                            <div class="col-md-9">
                                                <div class="form-group">
                                                    <label class="control-label col-md-3">
                                                        姓名
                                                    </label>
                                                    <div class="col-md-9">
                                                        <p class="form-control-static" id="name"></p>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-md-9">
                                                <div class="form-group">
                                                    <label class="control-label col-md-3">
                                                        身份证
                                                    </label>
                                                    <div class="col-md-9">
                                                        <p class="form-control-static" id="identityNumber"></p>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-md-9">
                                                <div class="form-group">
                                                    <label class="control-label col-md-3">
                                                        所在地
                                                    </label>
                                                    <div class="col-md-9">
                                                        <p class="form-control-static" id="area"></p>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-md-9">
                                                <div class="form-group">
                                                    <label class="control-label col-md-3">
                                                        认证审核
                                                    </label>
                                                    <div class="mt-radio-inline">
                                                        <label class="mt-radio mt-radio-outline">
                                                            <input type="radio" class="checkStatus" name="checkStatus" value="1" checked="">
                                                            审核通过
                                                            <span></span>
                                                        </label>
                                                        <label class="mt-radio mt-radio-outline">
                                                            <input type="radio" class="checkStatus" name="checkStatus" value="3">
                                                            审核驳回
                                                            <span></span>
                                                        </label>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row failMsg-div" style="display: none;">
                                            <div class="col-md-9">
                                                <div class="form-group">
                                                    <label class="control-label col-md-3"></label>
                                                    <div class="col-md-9">
                                                        <input type="text" class="form-control" name="failMsg" value="" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                        <input type="hidden" class="id" name="id" value="">
                                        <input type="hidden" class="memberId" name="memberId" value="">
                                        <input type="hidden" class="authType" name="authType" value="">
                                    </div>
                                </form>
                            </div>
                        </div>
                        <!-- END SAMPLE FORM PORTLET-->
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn blue save-btn"> 确定 </button>
                <button type="button" class="btn default" data-dismiss="modal"> 关闭 </button>
            </div>
        </div>
    </div>
</div>

<input type="hidden" class="getregion_url" value="{:url('admin/region/getregion')}">
<input type="hidden" class="getvillage_url" value="{:url('admin/region/getvillage')}">
<input type="hidden" class="adminType" value="{$admin.type}">
<input type="hidden" class="adminCity" value="{$admin.cityId}">
<input type="hidden" class="adminXian" value="{$admin.xianId}">
<input type="hidden" class="adminTown" value="{$admin.townId}">
<input type="hidden" class="adminVillage" value="{$admin.villageId}">

<input type="hidden" class="datalist_url" value="{:url('admin/memberauth/index')}">
<input type="hidden" class="checkhandle_url" value="{:url('admin/memberauth/checkhandle')}">
{/block}

{block name="pagescript"}
<script src="__STATIC__/admin/pages/js/searcharea.js" type="text/javascript"></script>
<script src="__STATIC__/admin/pages/js/memberauth.js" type="text/javascript"></script>
{/block}